package org.sunspotworld.demo;

/*
 * Krish
 */
public interface PacketTypes {
         
 // TODO can change on Mi's implementation
    //
    public static final byte HEARTBEAT_PACKET               = 1;
    //
    public static final byte ACK_FOR_HEARTBEAT_PACKET       = 2;
    /** Client command to locate a display server. */
    public static final byte ACK_FOR_ASSIGNPORT_PACKET      = 3;    // sent to display host (broadcast)
    /** Host command to indicate it is restarting. */
    public static final byte DISPLAY_SERVER_START           = 4;   // sent to any clients (broadcast)
    /** Host command to indicate it is pausing. */
    public static final byte DISPLAY_SERVER_PAUSE           = 5;    // (direct p2p)
    //
    public static final byte DISPLAY_SERVER_AVAIL_REPLY     = 6;
    /* done with adding all the sensors*/
    public static final byte FINISH_CONFIG_REQ              = 7;
    /*This is called in reply to the Finish Confguration Request
     * along with the packet format of the sensors.
     */
    public static final byte FINISH_CONFIG_REPLY            = 8;

    // add sensor to be sent along with a sensor type.
    public static final byte ADD_SENSOR                     = 9;
    public static final byte REM_SENSOR                     = 10;
    public static final byte GET_SCALE_REQ                  = 11;
    public static final byte SET_SCALE_REQ                  = 12;
    public static final byte CALIBRATE_REQ                  = 13;
    public static final byte GET_SCALE_REPLY                = 14;
    public static final byte SET_SCALE_REPLY                = 15;
    public static final byte CALIBRATE_REPLY                = 16;
    //
    public static final byte DATA_REPLY                     = 17;
    /** Host command to indicate it is quitting**/
    public static final byte DISPLAY_SERVER_STOP            = 18;
    /** Client reply with any error message for the host to display. */
    public static final byte MESSAGE_REPLY                  = 19;
    /* blink led to detect the free ranger */
    public static final byte BLINK_LED                      = 20;
    /** Client reply to a ping includes the radio signal strength & battery level. */
    public static final byte PING_REPLY                     = 21;

}